home *** CD-ROM | disk | FTP | other *** search
/ PC-Blue - MS DOS Public Domain Library / PC-Blue MS-DOS Public Domain Library - NYACC.iso / vol257 / techref.oqt / techref.out
Encoding:
Text File  |  1986-08-07  |  22.4 KB  |  727 lines

  1.  
  2.                                    DBS-KAT (TM)
  3.  
  4.                             The Easy, Practical, Super
  5.                             Capacity Diskette Cataloger
  6.                            And Hard Disk Archive Utility
  7.  
  8.  
  9.                             TECHNICAL REFERENCE MANUAL
  10.  
  11.  
  12.                                         by
  13.                                     R.H. Martin
  14.  
  15.  
  16.                               Applied Foresight Inc.
  17.                                   P.O. Box 20607
  18.                              Bloomington, Minn.  55420
  19.  
  20.                                    July 6, 1986
  21.                                     Version 2.0
  22.  
  23.  
  24.  
  25.                            Copyright 1986 by R.H. Martin
  26.                                 All Rights Reserved
  27.  
  28.  
  29.  
  30.                           A DB-SHAREWARE Software Product
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.                     A limited license is hereby granted to copy
  38.                    & distribute wholly unmodified copies of the
  39.                DBS-KAT Software Diskette which contains this manual
  40.  
  41.                    (Read the manual, "THE DB-SHAREWARE PROGRAM"
  42.                    for full details about this limited license)
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.                                                              Trademark Pending
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.      DBS-KAT TECH REF MANUAL       Copyright 1986 R.H. Martin       P. 2
  69.  
  70.  
  71.  
  72.                                  TABLE OF CONTENTS
  73.  
  74.      Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
  75.      About This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
  76.      Efficiency Of DBS-KAT. . . . . . . . . .. . . . . . . . . . . . . . . . 3
  77.      DBS-KAT Inquiry Search Strategies . . . . . . . . . . . . . . . . . . . 5
  78.      Recovering Your Database. . . . . . . . . . . . . . . . . . . . . . . . 7
  79.      Upgrading A PC-KAT/Pre-2.0 DBS-KAT Database . . . . . . . . . . . . . . 9
  80.      DBS-KAT Version History . . . . . . . . . . . . . . . . . . . . . . . .11
  81.  
  82.  
  83.                                  ABOUT THIS MANUAL
  84.  
  85.      With the exception of the Registration Benefits section, this manual
  86.      restricts itself to the base DBS-KAT software diskette.  The concept of
  87.      "base software" is discussed in greater detail in the THE DB-SHAREWARE
  88.      PROGRAM manual.
  89.  
  90.      A section is designated by a centered & underlined heading.  Centered but
  91.      NOT underlined headings are referred to as a subsection.
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.      DBS-KAT TECH REF MANUAL       Copyright 1986 R.H. Martin       P. 3
  135.  
  136.  
  137.                                EFFICIENCY OF DBS-KAT
  138.  
  139.      DBS-KAT is fast & efficient, minimizing the amount of disk space required
  140.      to store the cataloged information.  Each date & time field is
  141.      concatenated together & stored as a 4 byte long integer.  In plain words,
  142.      what you see on the screen as 10 bytes of information is stored in 4
  143.      bytes of storage.  The four byte volume ID is stored as a 2 byte integer.
  144.      If a diskette filename is associated with a floppy subdirectory, the
  145.      directory name is separately stored in the database only once in its
  146.      alphabetical description form, & given an ID number.  This ID number is
  147.      carried in the appropriate individual filename records.
  148.  
  149.      The entire DBS-KAT database is kept in the files prefixed as KATDB.DA &
  150.      KATDB.KE.  The database contains the system control record, the diskette
  151.      volume text information & the directory file information for all
  152.      cataloged files.  In addition, all the record pointers are stored in the
  153.      database to allow quick updating & retrieval of information.   The file
  154.      KATDB.DBD is the data base structure dictionary which never grows but is
  155.      needed for the programs to work & must reside in the same directory area
  156.      on the hard disk alongside the other KATDB files.
  157.  
  158.      What this means is that although DBS-KAT must keep its inter-
  159.      relationships connected at the disk drive level versus smaller packages
  160.      which do most of their inter-relationships at runtime in memory, DBS-KAT
  161.      does not use up hardly any more disk space, & that is because of its
  162.      efficient use of disk space.  Additionally, DBS-KAT has to allow for its
  163.      database pointers to expand up to 16 million records.  What this means is
  164.      that on the average, DBS-KAT uses up only 7 percent more space per
  165.      cataloged directory entry than does its competitors.
  166.  
  167.      The other packages gain their processing efficiency by storing the entire
  168.      database in memory at run time.  That is why they can't get larger,
  169.      because they are constrained by available program data memory space.
  170.      Yet, without significantly sacrificing additional disk space, DBS-KAT
  171.      uses disk space to hold its pointers, & achieves comparable processing
  172.      efficiency on a catalog database capable of holding 16 million records.
  173.  
  174.      The author maintains for himself a DBS-KAT database of over 18,000
  175.      filenames & around eight hundred diskettes.
  176.  
  177.      Throughout the built-up of this database, the author has not noticed a
  178.      worsening of processing performance, except that a display request for a
  179.      floating substring phrase within any & all cataloged filenames does take
  180.      a little longer as the database grows.  To use the DOS DIR command syntax
  181.      to explain this type of search request, although DOS does not honor such
  182.      a search request, if it did, a request might look like this: DIR *CAT*.
  183.      On a COMPAQ PLUS, with 8,000 filenames in a DBS-KAT database, it takes
  184.      under 2 minutes for such a search to finish, whereas with 6,000
  185.      filenames, it takes under 1.5 minutes.  Search requests for left-hand
  186.      anchored substring phrases within any & all cataloged filenames is
  187.      extremely rapid, taking only a couple of seconds to fulfill.  A search
  188.      request at the DOS DIR level might look like: DIR CAT*.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.      DBS-KAT TECH REF MANUAL       Copyright 1986 R.H. Martin       P. 4
  201.  
  202.  
  203.  
  204.      DBS-KAT is fast because of the tools used in developing DBS-KAT
  205.      (discussed earlier) & because of its streamlined design.  For instance,
  206.      if you have a diskette previously cataloged by DBS-KAT, when you change,
  207.      add or delete a few files on the diskette, DBS-KAT concentrates on these
  208.      modifications.  A less efficient design might start out the processing of
  209.      each diskette with the deletion of all prior database information for
  210.      that diskette.  Because of DBS-KAT's usage of the sophisticated DB-VISTA
  211.      database manager, it is able to immediately access prior information for
  212.      the at-hand diskette in the correct processing order in which it needs
  213.      it.  Finally, DBS-KAT is fast because it allows the user to use a RAM
  214.      disk emulator to store the subprograms & work files for DBS-KAT on the
  215.      RAM disk.
  216.  
  217.      DBS-KAT is also fast because it is smart.  If you mistakenly insert a
  218.      diskette which hasn't changed since it was last processed by DBS-KAT, you
  219.      are told this is the case.  DBS-KAT keeps for each diskette both a
  220.      numeric total of the number of files on the diskette plus the sum of all
  221.      dates + all times + all file sizes of all the files on the diskette.
  222.      Before DBS-KAT considers updating directory entries for a diskette, it
  223.      compares these two new totals with the prior run's old totals.
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.      DBS-KAT TECH REF MANUAL       Copyright 1986 R.H. Martin       P. 5
  267.  
  268.  
  269.                          DBS-KAT INQUIRY SEARCH STRATEGIES
  270.  
  271.      To understand the many ways you can search your DBS-KAT database & how
  272.      efficient will be your search, you need to know how your DBS-KAT database
  273.      is structured.  For searching purposes, you can think of the database
  274.      being ordered in two different ways:
  275.  
  276.      (a) by alphabetical, indexed, order by FILENAME.EXT, regardless of the
  277.          volume ID; &
  278.      (b) by numeric, indexed, order by volume ID, & within volume ID order,
  279.          subordered alphabetically, by FILENAME.EXT.
  280.  
  281.      The path information is carried in the database, but it has no ordering
  282.      effect in terms of aiding retrieval of information.
  283.  
  284.      Based upon the structure of DBS-KAT's database design, the following
  285.      examples represent a range of searchs ordered by a most efficient search
  286.      argument to a least efficient search argument:
  287.  
  288.          FILENAME ARGUMENT TYPE   EXT ARGUMENT TYPE   PATH/NOTE ARG TYPE
  289.          --------          -      ---          -      --------      -
  290.          MYFILE            E      DOC          E      MYPATH        E
  291.          MYFILE            E      DOC          E      MY            A
  292.          MYFILE            E      DOC          E      AT            U
  293.          MYFILE            E      D            A      <left blank>
  294.          MYFILE            E      O            U      <left blank>
  295.          MYFILE            E      <left blank>        <left blank>
  296.          MY                A      DOC          E      MYPATH        E
  297.          MY                A      DOC          E      MY            A
  298.          MY                A      DOC          E      AT            U
  299.          MY                A      D            A      <left blank>
  300.          MY                A      O            U      <left blank>
  301.          MY                A      <left blank>        <left blank>
  302.          FIL               U      DOC          E      MYPATH        E
  303.          FIL               U      DOC          E      MY            A
  304.          FIL               U      DOC          E      AT            U
  305.          FIL               U      D            A      <left blank>
  306.          FIL               U      O            U      <left blank>
  307.        * FIL               U      <left blank>        <left blank>
  308.       ** <left blank>             DOC          E      MYPATH        E
  309.          <left blank>             DOC          E      MY            A
  310.          <left blank>             DOC          E      AT            U
  311.          <left blank>             D            A      <left blank>
  312.          <left blank>             O            U      <left blank>
  313.          <left blank>             <left blank>        MYPATH        E
  314.          <left blank>             <left blank>        MY            A
  315.          <left blank>             <left blank>        AT            U
  316.  
  317.      Don't be afraid to use the search strategy you need to accomplish the job
  318.      you want done.  For instance, against a database of 12,000 directory
  319.      entries, to search using an argument like the above line with an asterick
  320.      preceeding it, took around two & a half minutes.  This search argument
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.      DBS-KAT TECH REF MANUAL       Copyright 1986 R.H. Martin       P. 6
  333.  
  334.  
  335.      causes the entire database keyfile to be scanned from start to end.  The
  336.      last three searches are the most disk intensive types of searches, as
  337.      they cause the entire database keyfile and datafiles to be scanned from
  338.      start to end.
  339.  
  340.      Search strategies beginning with the double astericked line are
  341.      significantly slower than those above it.  These search strategies
  342.      involve intensive disk accessing.  That is because both the key and data
  343.      record must be read from disk for every database record in order to be
  344.      considered for retrieval.  For search strategies before the double-
  345.      astericked line, the data record was hardly ever accessed if at all.
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.      DBS-KAT TECH REF MANUAL       Copyright 1986 R.H. Martin       P. 7
  399.  
  400.  
  401.                              RECOVERING YOUR DATABASE
  402.  
  403.      "Into each life a little rain must fall."  It can happen to one's
  404.      database too.  Recovery should be done when you loose your hard disk or
  405.      when something has damaged your database.  In either case, the database
  406.      recovery procedure is the same.  True, you have to restore everything
  407.      else in a hard disk failure, but you're on your own to figure that
  408.      dilemna out.  Just the database recovery procedure is documented here.
  409.      Follow these procedures.
  410.  
  411.      #   ACTION  EVENT OR COMMAND                      COMMENT
  412.      --  ------  ----------------------------------    -----------------------
  413.      1   Type    C:                                    Move to your hard disk.
  414.  
  415.      2   Type    CD \                                  Move to the root
  416.                                                        directory.
  417.  
  418.      3   Type    VERIFY ON                             Ensure better file
  419.                                                        copies.
  420.  
  421.      4   Type    COPY KATDB.LOG KATDB.FIX              Save current log file.
  422.  
  423.      5   Type    KATLOG                                Print your current log
  424.                                                        file.
  425.  
  426.      6   Find    Latest DBS-KAT database backup disks  Insert disk 1 into
  427.                                                        drive.
  428.  
  429.      7   Type    RESTORE A: C:KATDB.*                  Restore old DBS-KAT
  430.                                                        database.
  431.  
  432.      8   Do      DBS-KAT Integrity Analysis if not     If integrity fails go
  433.                  using a "VERIFIED" backup set.        back to step 5.
  434.  
  435.      9   Read    KATLOG printout for line # of B/U state which you're restored
  436.                  to.  Call this number "RESTORE-LINENUM".
  437.  
  438.      10  Read    KATLOG printout for last line # of printout.  Call this
  439.                  number "LAST-LINENUM".
  440.  
  441.      11  Calc    Write down what LAST-LINENUM minus RESTORE-LINENUM equals.
  442.                  Call this number STRIP-LINENUM.
  443.  
  444.      12  Type    KATSTRIP STRIP-LINENUM                Substitute real number.
  445.                                                        KATDB.FIX now contains
  446.                                                        an unsorted list of
  447.                                                        disks to reprocess.
  448.  
  449.      13  Type    SORT <KATDB.FIX >PRN                  This printout is sorted
  450.                                                        by yet-to-redo volume
  451.                                                        ID within location.
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.      DBS-KAT TECH REF MANUAL       Copyright 1986 R.H. Martin       P. 8
  465.  
  466.  
  467.      14  DO      KAT -U or some variation              Reprocess listed
  468.                                                        diskettes.
  469.  
  470.      15  Type    DEL KATDB.FIX                         No longer needed.
  471.  
  472.      You're done!  Consider doing a DBS-KAT Integrity Analysis & Backup to
  473.      preserve the recovery work you just went through.
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.      DBS-KAT TECH REF MANUAL       Copyright 1986 R.H. Martin       P. 9
  531.  
  532.  
  533.                     UPGRADING A PC-KAT/PRE-2.0 DBS-KAT DATABASE
  534.  
  535.      Raima Corporation, the developer of DB_VISTA, which is the database
  536.      manager used by DBS-KAT, found some rare occurring problems with 2.10 of
  537.      DB-VISTA, which was used for PC-KAT and pre-2.0 versions of DBS-KAT.  DB-
  538.      VISTA release 2.11 was released to fix these rare occurring problems (so
  539.      rare, that I never noticed anything amiss except once after processing
  540.      18,000 filenames and nearly 900 diskettes).  DBS-KAT releases as of 2.0
  541.      use DB-VISTA 2.11.
  542.  
  543.      There are two ways to upgrade your existing, pre-2.0 DBS-KAT database:
  544.  
  545.         1.  Send $6.50 US (foreign users add $10 US) to Applied Foresight,
  546.             Inc. for a diskette with a DB_VISTA database rebuild program and a
  547.             DB_VISTA database consistency checkout program, along with
  548.             instructions on how to use them.  This approach costs money but
  549.             involves no manual re-entry of database information.  Use the
  550.             KAT -O option to printout an order form to place your order.
  551.  
  552.             OR ELSE
  553.  
  554.         2.  Build up from scratch a brand new, post-release DBS-KAT 2.0
  555.             database.  To do this, follow the steps below.  If you have less
  556.             than 100 diskettes, you'll find that this isn't all that bad of a
  557.             task and it will save you the money to pursue option 1.  Option 1
  558.             however will provide you with a database rebuild program
  559.             (KEYBUILD) and consistency checkout program (DBCHECK) which is
  560.             fast and thorough, as they were written by the developers of
  561.             DB_VISTA.  With these programs, you can forever more bypass the
  562.             DBS-KAT specific integrity analysis procedure, which is not as
  563.             thorough as DB_VISTA's DBCHECK program.  Raima corporation has
  564.             authorized Applied Foresight Inc. to offer these programs to its
  565.             customers.
  566.  
  567.      To perform step 2, you need to perform the following steps:
  568.  
  569.  
  570.      #   ACTION  EVENT OR COMMAND                      COMMENT
  571.      --  ------  ----------------------------------    -----------------------
  572.      1   Type    C:                                    Move to your hard disk.
  573.  
  574.      2   Type    CD \                                  Move to the root
  575.                                                        directory if DBS-KAT
  576.                                                        was installed there,
  577.                                                        else move to the
  578.                                                        directory where DBS-KAT
  579.                                                        resides.
  580.  
  581.      3   Type    VERIFY ON                             Ensure better file
  582.                                                        copies.
  583.  
  584.      4   Type    KATLOOK -M                            Look at your existing
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.      DBS-KAT TECH REF MANUAL       Copyright 1986 R.H. Martin       P. 10
  597.  
  598.  
  599.                                                        System Control Record
  600.                                                        setup information and
  601.                                                        using the PrtSc key,
  602.                                                        record how it is
  603.                                                        already setup.
  604.  
  605.      5   Type    KATLOOK                               Print out a list of
  606.                                                        the cataloged volumes
  607.                                                        that you already have,
  608.                                                        along with their
  609.                                                        description.
  610.  
  611.      6   Choose option 4 & have it go to P(rinter)     To get a "Listing of
  612.                                                        cataloged diskette
  613.                                                        volumes" of your pre-
  614.                                                        2.0 DBS-KAT database.
  615.  
  616.      7   DO      Delete all old DBS-KAT or PC-KAT files off your hard disk.
  617.                  (Do not undo nor delete whatever is in CONFIG.SYS or your
  618.                  AUTOEXEC.BAT files; nor should you delete whatever DOS pro-
  619.                  grams were needed to work with your old DBS-KAT.)
  620.  
  621.                                                        For example, in the
  622.                                                        directory where you
  623.                                                        previously installed
  624.                                                        DBS-KAT, type:
  625.                                                        DEL KAT*.*
  626.  
  627.      8   Insert DBS-KAT 2.0 diskette in drive A:.
  628.  
  629.      9   Follow DBS-KAT 2.0 manual instructions to install DBS-KAT.
  630.  
  631.      10  Type:   KATLOOK -M                            Update your System
  632.                                                        Control Record similar
  633.                                                        to your old one, as
  634.                                                        given by the Print
  635.                                                        Screen done above under
  636.                                                        step 4.
  637.  
  638.      11  Type:   KAT -U                                Process every diskette
  639.                                                        listed under step 6
  640.                                                        above.  Update the
  641.                                                        volume header database
  642.                                                        record for each
  643.                                                        diskette with the
  644.                                                        printout information.
  645.  
  646.      12  You're done!  Consider backing up this database now.  Back up the
  647.          database from inside KAT -U program with the "B" option.
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.      DBS-KAT TECH REF MANUAL       Copyright 1986 R.H. Martin       P. 11
  663.  
  664.  
  665.  
  666.                               DBS-KAT VERSION HISTORY
  667.  
  668.      REL.  CATEGORY CHG.  WHEN  COMMENT-------------------------------------
  669.  
  670.      1.0   BETA RELEASE   6/85  Not released to general public.
  671.      1.1   BETA UPDATE    6/85  " ".
  672.      1.2   PUBLIC REL.    1/86  First public release under PC-KAT name.
  673.      1.2A  RARE BUG FIX   1/86  If diskette had multiple directories on it,
  674.                                 1.2 occassionally would abort.
  675.      1.2B  RARE BUG FIX   1/86  Improvement upon 1.2A fix; changing all
  676.                                 copyright statements to 1986 year.
  677.      1.2C  COSMETIC FIX   2/86  KATLOOK handled printer formfeed wrong when
  678.                                 doing multi-page volume header subselection
  679.                                 retrieval; added version history notes;
  680.                                 shortened novice install instructions.
  681.      1.3   NAME CHANGE    2/86  Product renamed DBS-KAT.
  682.      1.3A  NAME CHANGE &  3/86  DB-SHARE concept renamed DB-SHAREWARE &
  683.            UPD.ENHANCE.         Improved support for cataloging remove-
  684.                                 able disk cartridges.
  685.      1.3B  UPD.ENHANCE.   4/86  Support cataloging non-std disk labels.
  686.      1.4   INQ.ENHANCE.   5/86  Support inquiry against ext.path/note field.
  687.      1.4A  COSMETIC CHG   5/86  If DB not in root but present, don't CD \.
  688.      2.0   DB_VISTA UPD & 7/86  Update from 2.1 to 2.11 DB_VISTA.  Added new
  689.            ADDED KATSCAN        programs, KATASK & KATSCAN, & updated KPRINT.
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.